package com.ruoyi.web.controller.module.thirdpard;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.thirdpart.domain.UserAuth;
import com.ruoyi.thirdpart.service.IUserAuthService;
import com.ruoyi.thirdpart.service.IWxOAuthchatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URLEncoder;
import java.security.MessageDigest;
import java.util.Arrays;

/**
 * 用户授权
 * 
 * @author ruoyi
 */
@RestController
@RequestMapping("/thirdpart/wxoauth")
public class WxOAuthController extends BaseController
{
    @Autowired
    private IWxOAuthchatService wxOAuthServiceImpl;

    /**
     * 微信 公众号 模板通知
     */
    @GetMapping("/sendMessage")
    public AjaxResult sendMessage(HttpServletRequest request)
    {
        AjaxResult ajax = AjaxResult.success();
        // String token = request.getParameter("token");
        // wxOAuthServiceImpl.sendMessage(token);
        return ajax;
    }
}
